import yagmail

def send_fasong(file):
    mail=yagmail.SMTP(user='2440154941@qq.com',password='dpesnmfqvkwfebba',host='smtp.qq.com')
    mail.send(to='2440154941@qq.com',subject='发送测试报告',contents='报告',attachments=file)